package org.example.ioc.pro6_ioc_conditional;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan
public class pro6_Test {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(pro6_Test.class);
        WindowsTool wt= (WindowsTool) context.getBean("windowsTool");
        System.out.println(wt);
    }
}
